home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / hity wydania / Ubuntu 9.10 PL / karmelkowy-koliberek-desktop-9.10-i386-PL.iso / casper / filesystem.squashfs / var / lib / dpkg / info / brltty.preinst < prev    next >
Text File  |  2009-10-13  |  388b  |  18 lines

  1. #!/bin/sh
  2.  
  3. set -e
  4.  
  5. if [ "$1" = install ] || [ "$1" = upgrade ]; then
  6.     if [ -e "/etc/udev/rules.d/85-brltty.rules" ]; then
  7.         if [ "`md5sum \"/etc/udev/rules.d/85-brltty.rules\" | sed -e \"s/ .*//\"`" = \
  8.              "`dpkg-query -W -f='${Conffiles}' brltty | sed -n -e \"\\\\' /etc/udev/rules.d/85-brltty.rules's/.* //p\"`" ]
  9.         then
  10.             rm -f "/etc/udev/rules.d/85-brltty.rules"
  11.         fi
  12.     fi
  13. fi
  14.  
  15.  
  16.  
  17.  
  18.